package nz.org.winters.appspot.acrareporter.shared;

import java.io.Serializable;

import nz.org.winters.appspot.acrareporter.store.AppUser;
/*
 * Copyright 2013 Mathew Winters

 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/


public class LoginInfo implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4071895661193721005L;
	private boolean loggedIn = false;
	  private String loginUrl;
	  private String logoutUrl;
	  private String emailAddress;
	  private String nickname;
	  private boolean useradmin;
	  
	  private AppUser appUserShared;

	  public boolean isLoggedIn() {
	    return loggedIn;
	  }

	  public void setLoggedIn(boolean loggedIn) {
	    this.loggedIn = loggedIn;
	  }

    public boolean isUserAdmin() {
      return useradmin;
    }

    public void setUserAdmin(boolean admin) {
      this.useradmin = admin;
    }

    public String getLoginUrl() {
	    return loginUrl;
	  }

	  public void setLoginUrl(String loginUrl) {
	    this.loginUrl = loginUrl;
	  }

	  public String getLogoutUrl() {
	    return logoutUrl;
	  }

	  public void setLogoutUrl(String logoutUrl) {
	    this.logoutUrl = logoutUrl;
	  }

	  public String getEmailAddress() {
	    return emailAddress;
	  }

	  public void setEmailAddress(String emailAddress) {
	    this.emailAddress = emailAddress;
	  }

	  public String getNickname() {
	    return nickname;
	  }

	  public void setNickname(String nickname) {
	    this.nickname = nickname;
	  }

    public AppUser getAppUserShared()
    {
      return appUserShared;
    }

    public void setAppUserShared(AppUser appUserShared)
    {
      this.appUserShared = appUserShared;
    }

    @Override
    public String toString()
    {
      return "LoginInfo [loggedIn=" + loggedIn + ", loginUrl=" + loginUrl + ", logoutUrl=" + logoutUrl + ", emailAddress=" + emailAddress + ", nickname=" + nickname + ", useradmin=" + useradmin + ", appUserShared=" + appUserShared + "]";
    }
}
